<?php


namespace App\Models;


class VoteLog extends BaseModel
{
    //判断当天能否继续投票
    public static function isDayVote($where)
    {
        $where[] = ['created_at', '>', date('Y-m-d 00:00:00')];
        $where[] = ['created_at', '<', date('Y-m-d 23:59:59')];
        $count = self::where($where)->count();
        if($count >= 3){
            return true;
        }
        return false;
    }
}